package com.phc.a20200511work;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.phc.a20200511work.competence.compentence;
import com.phc.a20200511work.paopao.paopao;
import com.phc.a20200511work.video.volde;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = "MainActivity";
    private Button activityMainButton1;
    private Button activityMainButton2;
    private Button activityMainButton3;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        activityMainButton1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, volde.class);
                startActivity(intent);
            }
        });
        activityMainButton2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, paopao.class);
                startActivity(intent);
            }
        });
        activityMainButton3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, compentence.class);
                startActivity(intent);
            }
        });

    }

    private void initView() {
        activityMainButton1 = (Button) findViewById(R.id.activity_main_button1);
        activityMainButton2 = (Button) findViewById(R.id.activity_main_button2);
        activityMainButton3 = (Button) findViewById(R.id.activity_main_button3);
    }
}
